package com.ttsx.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.ttsx.pojo.dto.user.UserLoginDTO;
import com.ttsx.pojo.dto.user.UserQueryDTO;
import com.ttsx.pojo.dto.user.UserRegisterDTO;
import com.ttsx.pojo.entity.User;

/**
* @author lucky
* @description 针对表【ttsx_user(用户表)】的数据库操作Service
* @createDate 2025-03-01 17:41:06
*/
public interface UserService extends IService<User> {

    User login(UserLoginDTO userLoginDTO);

    Boolean register(UserRegisterDTO userRegisterDTO);

    void logout();

    PageInfo<User> getPage(Integer pIndex, Integer pSize, UserQueryDTO userQueryDTO);

    User getByUsername(String username);
}
